package com.ruoyi.committee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.committee.mapper.HouseCommitteeTMapper;
import com.ruoyi.committee.domain.HouseCommitteeT;
import com.ruoyi.committee.service.IHouseCommitteeTService;

/**
 * 业主委员会Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-20
 */
@Service
public class HouseCommitteeTServiceImpl implements IHouseCommitteeTService 
{
    @Autowired
    private HouseCommitteeTMapper houseCommitteeTMapper;

    /**
     * 查询业主委员会
     * 
     * @param committeeId 业主委员会主键
     * @return 业主委员会
     */
    @Override
    public HouseCommitteeT selectHouseCommitteeTByCommitteeId(Long committeeId)
    {
        return houseCommitteeTMapper.selectHouseCommitteeTByCommitteeId(committeeId);
    }

    /**
     * 查询业主委员会列表
     * 
     * @param houseCommitteeT 业主委员会
     * @return 业主委员会
     */
    @Override
    public List<HouseCommitteeT> selectHouseCommitteeTList(HouseCommitteeT houseCommitteeT)
    {
        return houseCommitteeTMapper.selectHouseCommitteeTList(houseCommitteeT);
    }

    /**
     * 新增业主委员会
     * 
     * @param houseCommitteeT 业主委员会
     * @return 结果
     */
    @Override
    public int insertHouseCommitteeT(HouseCommitteeT houseCommitteeT)
    {
        return houseCommitteeTMapper.insertHouseCommitteeT(houseCommitteeT);
    }

    /**
     * 修改业主委员会
     * 
     * @param houseCommitteeT 业主委员会
     * @return 结果
     */
    @Override
    public int updateHouseCommitteeT(HouseCommitteeT houseCommitteeT)
    {
        return houseCommitteeTMapper.updateHouseCommitteeT(houseCommitteeT);
    }

    /**
     * 批量删除业主委员会
     * 
     * @param committeeIds 需要删除的业主委员会主键
     * @return 结果
     */
    @Override
    public int deleteHouseCommitteeTByCommitteeIds(Long[] committeeIds)
    {
        return houseCommitteeTMapper.deleteHouseCommitteeTByCommitteeIds(committeeIds);
    }

    /**
     * 删除业主委员会信息
     * 
     * @param committeeId 业主委员会主键
     * @return 结果
     */
    @Override
    public int deleteHouseCommitteeTByCommitteeId(Long committeeId)
    {
        return houseCommitteeTMapper.deleteHouseCommitteeTByCommitteeId(committeeId);
    }
}
